﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using Driven.ProcessScheduler.Web;
using Driven.ProcessScheduler.Web.Controllers;
using NUnit.Framework;

namespace Driven.ProcessScheduler.Web.Tests.Controllers
{
    [TestFixture]
    public class HomeControllerTest
    {
        [Test]
        public void Index()
        {
            // Arrange
            var controller = new HomeController();

            // Act
            var result = controller.Index() as ViewResult;

            // Assert
            Assert.AreEqual("Process Scheduler - Manager", result.ViewData["Message"]);
        }

        [Test]
        public void Admin()
        {
            // Arrange
            var controller = new HomeController();

            // Act
            var result = controller.Admin() as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }
    }
}
